#include <math.h>
#include <stdio.h>
unsigned GetBit(unsigned num, int bit)
{
    if (bit < 1) return 0;
    return (unsigned)((num-((int)(num/pow((float)10,bit))) *pow((float)10,bit))/pow((float)10, bit-1)) ;
}

int main(void)
{
    int num,len,i;

    scanf("%d", &num);
    len = 0;
    if (!num);
    i = num;
    while( i > 0)
    {
        i = i/10;
        len++;
    }

    for(i=len; i>len/2; i--)
    {
        if (  GetBit(num,i) != GetBit(num,len-i+1) )
        {
            printf("No\n");
            i=-1;
            break;
        }
    }
    if (i!=-1)
        printf("Yes\n");
    
}
